package com.azirkxs.clothes.cys.mapper;

import com.azirkxs.clothes.cys.entity.Armoire;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author azirkxs
 * @since 2023-04-09
 */
public interface ArmoireMapper extends BaseMapper<Armoire> {

    public List<Integer> getArmoireByUserId(Integer userId);

    public List<Map> getArmoireTagsByArmoireId(Integer armoire_id);

    // 更新衣柜名称
    int updateArmoireName(Map<String, Object> map);

    // 删除指定衣柜的所有标签
    int deleteArmoireTags(Integer armoireId);

    int deleteArmoire(Integer armoireId);


    // 更新衣柜标签
    int insertArmoireTags(Map<String, Object> map);

    int addArmoireToUser(Map<String,Object> map);

    int createArmoire(Armoire armoire);

    int deleteArmoireFromUser(Integer armoireId);


}
